package org.sklse.learningassistant.controller;

import org.sklse.learningassistant.bean.Point;
import org.sklse.learningassistant.service.PointService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("point")
public class PointController {

    @Autowired
    private PointService pointService;


    @RequestMapping("findById")
    public Point findById(@RequestParam(value = "id") Integer id){
        return pointService.findById(id);
    }
}
